<?php
$q = isset($_GET['q'])? htmlspecialchars($_GET['q']) : '';
if($q) {
        if($q =='RUNOOB') {
                echo '菜鸟教程<br>http://www.runoob.com';
        } else if($q =='GOOGLE') {
                echo 'Google 搜索<br>http://www.google.com';
        } else if($q =='TAOBAO') {
                echo '淘宝<br>http://www.taobao.com';
        }
} else {
?>
rrr2232<br>
<?php echo 'wwee33<br>' ?>
<form action="" method="get">
    <input type="radio" name="q" value="RUNOOB" />Runoob1
    <input type="radio" name="q" value="GOOGLE" />Google2
    <input type="radio" name="q" value="TAOBAO" />Taobao3
    <input type="submit" value="提交">
</form>
<?php
}
?>

<!-- http://47.96.22.83:8187/tphp/tform/radio.php -->
